package com.ruoyi.dm.component.collect;


import cn.hutool.core.date.DateUtil;
import lombok.Data;

import java.util.Date;

@Data
public class IndexDataBO implements Comparable<IndexDataBO> {

    private Integer index;

    private Date dataTime;


    @Override
    public int compareTo(IndexDataBO o) {
        return DateUtil.compare(this.getDataTime(),o.getDataTime());
    }
}
